import { request, get, post } from '../request'

/**
 * @description 分页查询所有短视频
 */
export const QueryCameraRelatedVideoByPage = (params) => {
  return post({
    url: 'CameraRelatedVideo/QueryCameraRelatedVideoByPage',
    data: params
  })
}
/**
 * @description 删除短视频
 */
export const DelCameraRelatedVideo = (params: {
  "Ids": [
    string
  ]
}) => {
  return post({
    url: 'CameraRelatedVideo/DelCameraRelatedVideo',
    data: params
  })
}
/**
 * @description 添加直播相关短视频
 */
export const AddCameraRelatedVideo = (params: {
  "Name": string,
  "VlogType": number,
  "VlogUrl": string,
  "VlogCoverUrl": string
}) => {
  return post({
    url: 'CameraRelatedVideo/AddCameraRelatedVideo',
    data: params
  })
}
/**
 * @description 修改直播相关短视频
 */
export const ModifyCameraRelatedVideo = (params: {
  "Id": string,
  "Name": string,
  "VlogType": number,
  "VlogUrl": string,
  "VlogCoverUrl": string
}) => {
  return post({
    url: 'CameraRelatedVideo/ModifyCameraRelatedVideo',
    data: params
  })
}

/**
 * @description 获取直播相关短视频
 */
export const getShortVideo = (params) => post({
  url: "CameraRelatedVideo/GetCameraRelatedVideos",
  data: params
})
